const Open = function (url) {
  const a = document.createElement('a') // 创建a对象
  a.setAttribute('href', url)
  a.setAttribute('target', '_blank')
  document.body.appendChild(a)
  setTimeout(() => {
    document.body.removeChild(a)
  }, 300)
  a.click() // 执行当前对象
}

export default Open
